﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%var operType = ViewData["operType"] as String; %>
<%if (operType == "check")
  {%>
<p>
    上级部门:<%= ViewData["supdept"]%></p>
<p>
    部门名称:<%=ViewData["deptName"]%></p>
<p>
    部门分类:<%=ViewData["deptCatal"]%></p>
<p>
    部门描述:<%=ViewData["deptDescn"]%></p>
<%}
  else if (operType == "update")
  { %>
<%using (Ajax.BeginForm("UpdateDept", "Basic", new AjaxOptions { UpdateTargetId = "workarea" }))
  { %>
<p>
    目标上级部门:<%=Html.DropDownList("pardept")%></p>
<p>
    部门名称:<%=Html.TextBox("deptName")%><%=Html.Hidden("deptId") %></p>
<p>
    部门分类:<%=Html.TextBox("deptCatal")%></p>
<p>
    部门描述:<%=Html.TextArea("deptDescn")%></p>
<input type="submit" value="更新" />
<%} %>
<%}%>
